import "./assets/css/style.css"; // 用于管理样式变量
//
// import { colorManager, colorObject } from "./assets/css/colors-util"; // 无法import到全局使用
import { createApp } from "vue";
// pinia -- 自动本地持久化
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import { createPinia } from "pinia";
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
// element-plus
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import App from "./App.vue";
import router from "./router";

const app = createApp(App);

// app.use(createPinia());
app.use(pinia);
app.use(router);
app.use(ElementPlus);

import * as ElementPlusIconsVue from "@element-plus/icons-vue";

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

// 启动周期
app.mount("#app");
